package com.jxd.project.wzgl.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jxd.project.wzgl.dto.QueryApplicationDTO;
import com.jxd.project.menu.model.Application;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IApplicationDao extends BaseMapper<Application> {
    /**
     * 根据仓库ID、申请人姓名、申请状态查询申请
     * @param page
     * @param queryApplicationDTO
     * @return
     */
    List<Application> selectApplicationWithDTO(Page<Application> page, @Param("queryApplicationDTO") QueryApplicationDTO queryApplicationDTO);

    /**
     * 查询双重身份的借用审核待办数量
     * @param empNo
     * @return
     */
    int selectDoubleIdentityBorrowBackLogCount(int empNo);
}
